Green synthesis of nanoparticles